home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat4 / fd.z / fd
Encoding:
Text File  |  2002-10-03  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ffffdddd((((4444))))                                                                    ffffdddd((((4444))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _////_dddd_eeee_vvvv_////_ffff_dddd - file descriptor files
  10.  
  11. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.      These files, conventionally called _////_dddd_eeee_vvvv_////_ffff_dddd_////_0000, _////_dddd_eeee_vvvv_////_ffff_dddd_////_1111, _////_dddd_eeee_vvvv_////_ffff_dddd_////_2222, and
  13.      so on, refer to files accessible through file descriptors.  If file
  14.      descriptor _n is open, these two system calls have the same effect:
  15.  
  16.           _ffff_dddd _==== _oooo_pppp_eeee_nnnn_((((_""""_////_dddd_eeee_vvvv_////_ffff_dddd_////_n_""""_,,,,_mmmm_oooo_dddd_eeee_))))_;;;;
  17.           _ffff_dddd _==== _dddd_uuuu_pppp_((((_n_))))_;;;;
  18.  
  19.      On these files _cccc_rrrr_eeee_aaaa_tttt(2) is equivalent to _oooo_pppp_eeee_nnnn, and _mmmm_oooo_dddd_eeee is ignored.  As
  20.      with _dddd_uuuu_pppp, subsequent reads or writes on _ffff_dddd fail unless the original file
  21.      descriptor allows the operations.
  22.  
  23. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  24.      _oooo_pppp_eeee_nnnn(2), _dddd_uuuu_pppp(2)
  25.  
  26. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  27.      _oooo_pppp_eeee_nnnn(2) returns -1 and _EEEE_BBBB_AAAA_DDDD_FFFF if the associated file descriptor is not
  28.      open.
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.